package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import sun.security.krb5.internal.crypto.Des;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface DestinationRepository extends MongoRepository<Destination,String> {

    List<Destination> findByIdIn(List<String> refIds);


    List<Destination> findByParentId(String parentId, Pageable pageable);

    List<Destination> findByParentName(String name);

    Destination findByName(String name);
}
